<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="kr.hyosang.dkbs.kiosk.server.Const" %>

<%
  String reqUri = request.getRequestURI();
  String [] uriArr = reqUri.split("/");
  //URI는 /로 시작하므로 0 배열은 비어있음
  int sidebar = Const.Sidebar.MAIN;
  
  if("news".equals(uriArr[1])) {
    sidebar = Const.Sidebar.NEWS;
  }

%>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li <%=Const.Sidebar.isMain(sidebar) ? "class=\"active\"" : ""%>><a href="#">Overview</a></li>
            <li <%=Const.Sidebar.isNews(sidebar) ? "class=\"active\"" : ""%>><a href="#">Reports</a></li>
            <li><a href="#">Analytics</a></li>
            <li><a href="#">Export</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li><a href="">Nav item</a></li>
            <li><a href="">Nav item again</a></li>
            <li><a href="">One more nav</a></li>
            <li><a href="">Another nav item</a></li>
            <li><a href="">More navigation</a></li>
          </ul>
          <ul class="nav nav-sidebar">
            <li><a href="">Nav item again</a></li>
            <li><a href="">One more nav</a></li>
            <li><a href="">Another nav item</a></li>
          </ul>
        </div>